package com.dd.duu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dd.dc.entity.users.DLevelInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 描述: 用户等级Feign
 *
 * @author: yanglin
 * @Date: 2021-03-16-14:30
 * @Version: 1.0
 */
@FeignClient(value = "dd-user-service")
public interface LevelClient {

    @PostMapping("/user/d-level-info/queryLevelList")
    Page<DLevelInfo> queryLevelList(@RequestParam Integer page, @RequestParam Integer limit, @RequestParam String levelName);

    @PostMapping("/user/d-level-info/insert")
    Integer insert(@RequestBody DLevelInfo levelInfo);

    @PostMapping("/user/d-level-info/updateById")
    boolean updateById(@RequestBody DLevelInfo levelInfo);

    @PostMapping("/user/d-level-info/delete")
    boolean delete(@RequestParam Integer levelId);
}
